import { createWebHistory,createRouter } from 'vue-router';

import  HomeView  from "../components/home.vue";
import  List  from "../components/List.vue";

import ListDetail from '../components/ListDetail.vue';

const routes =[
    {path:'/',redirect:'home'},
    {path:'/home',component:HomeView},
    {path:'/WhxdList',component:List},
    {path:'/WhxdListDetail',component:ListDetail}
]
const router =createRouter({
    history:createWebHistory(),
    routes,
})
export default router